<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='子生产任务操作')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/Production/productionTaskOperation.css}" rel="stylesheet" />
<body class="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="">
					<div class="">
						<div class="div_bg">
							<!-- 调用Production/productionPublicCol里的-->
							<div th:include="Production/productionPublicCol :: queryListNew" />
							
							<!-- 生产任务表 start -->
							
							<div style="margin-top: 5px;">
								<table id="taskTable" class="table dataTable table-hover">
								</table>
							</div>
							<!-- 生产任务表 end -->
						</div>
						
						<!-- 产品工艺路线显示表 start -->
						<div class=" div_bg" style="margin-top: 15px;">
							<span style="margin-bottom: 10px;margin-top: 5px;" class="titleX">工艺路线</span>
							<div id="outside">
								<table id="outsideTable" class="table dataTable table-hover">
								</table>
							</div>
						</div>
						<!-- 产品工艺路线显示表 end -->
						
						<!-- 委外转出模态框 start -->
						<div class="modal fade " id="inOutModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 710px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModalLabel">委外转出</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="inOutForm" class="form-group">
											<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table" style="margin: 5px 15px;">
												<tr>
													<td class="titleTD"><span>工序号：</span></td>
													<td class="contentTD">
														<input type="text" id="fOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly" />
														<input type="hidden" id="fIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly" />
													</td>
													<td class="titleTD"><span>工序名称：</span></td>
													<td class="contentTD">
														<input type="text" id="fOperName" name="fOperName" class="clean_c form-control" readonly="readonly" />
													</td>
												</tr>
												<tr>
													<td><span>产品代码：</span></td>
													<td>
														<input type="text" id="fNumber" name="fNumber" class="clean_c form-control" readonly="readonly" />
													</td>
													<td><span>产品名称：</span></td>
													<td>
														<input type="text" id="fName" name="fName" class="clean_c form-control" readonly="readonly"/>
													</td>
												</tr>
												<tr>
													<td><span>规格型号：</span></td>
													<td colspan="3">
														<input type="text" id="fModel" name="fModel" class="clean_c form-control" readonly="readonly" />
													</td>
												</tr>
												<tr id="">
													<td><span>可转出数：</span></td>
													<td>
														<input type="text" id="noDispatchQty" name="noDispatchQty" class="clean_c form-control" readonly="readonly" />
													</td>
													<td><span class="requiredCss">*</span><span>委外数量：</span></td>
													<td>
														<input type="text" id="fQty" name="fQty" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
													</td>
												</tr>
												<tr>
													<td><span id="companyID">委外单位ID：</span></td>
													<td>
														<input type="text" id="fSupplierID" name="fSupplierID" class="clean_c form-control" readonly="readonly"/>
													</td>
													<td><span class="requiredCss">*</span><span id="companyName">委外单位：</span></td>
													<td>
														<input type="text" id="fSupplierName" name="fSupplierName" class="clean_c form-control bj_color" autocomplete="off"/>
													</td>
												</tr>
												<tr id="outDate">
													<td><span>单价：</span></td>
													<td>
														<input type="text" id="price" name="price" class="clean_c form-control bj_color" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
													</td>
													<td><span class="requiredCss">*</span><span>交货日期：</span></td>
													<td>
														<input type="text" id="fFetchDate" name="fFetchDate" class="clean_c form-control bj_color noPass" autocomplete="off"/>
													</td>
												</tr>
												<tr id="outPerson">
													<td><span class="requiredCss">*</span><span>转出人ID：</span></td>
													<td>
														<input type="text" id="empCardNoOut" name="fWorker" class="clean_c form-control bj_color" autocomplete="off"/>
													</td>
													<td><span>转出人：</span></td>
													<td>
														<input type="text" id="turnOutP" name="turnOutP" class="clean_c form-control" readonly="readonly"/>
													</td>
												</tr>
												<tr>
													<td colspan="4" style="text-align: left;">
														<span style="color: red;padding-left: 25px;word-wrap:break-word;" id="content">注：带*为必填字段。选委外单位后，委外单位ID里才有数据</span>
													</td>
												</tr>
											</table>
											<div style="text-align: center;">
												<button type="button" class="btn btn-default right" id="confirm_out" style="margin-right: 20px;">确定</button>
												<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 委外转出模态框 end -->
						
						<!-- 接收模态框 start -->
						<div class="modal fade " id="receiveModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 900px; height: 220px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">接收</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<form id="receiveForm" class="form-group">
											<div style="display: inline-block;overflow: hidden;margin:0 15px;" id="">
												<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content receiveTable" id="">
													<tr>
														<td class="title"><span class="sub">生产任务单：</span></td>
														<td colspan="">
															<input type="text" id="receivefBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
															<input type="hidden" id="receivefIcmoId" name="fIcmoId" class="clean_c form-control" readonly="readonly">
														</td>
														<td class="title"><span class="sub">产品代码：</span></td>
														<td colspan=""><input type="text" id="receivefNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">产品名称：</span></td>
														<td colspan=""><input type="text" id="receivefName" name="fName" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">规格型号：</span></td>
														<td colspan="5"><input type="text" id="receivefModel" name="fModel" class="clean_c form-control" readonly="readonly" style="width: 720px !important;"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">转出工序号：</span></td>
														<td colspan=""><input type="text" id="receivefSourceOperSN" name="fSourceOperSN" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">转出工序：</span></td>
														<td colspan=""><input type="text" id="receivefSourceOper" name="fSourceOper" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">转出车间：</span></td>
														<td colspan=""><input type="text" id="receivefSourceCenter" name="fSourceCenter" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title"><span class="sub">工序号：</span></td>
														<td colspan=""><input type="text" id="receivefTargetOperSN" name="fTargetOperSN" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">工序：</span></td>
														<td colspan=""><input type="text" id="receivefTargetOper" name="fTargetOper" class="clean_c form-control" readonly="readonly"></td>
														<td class="title"><span class="sub">生产车间：</span></td>
														<td colspan=""><input type="text" id="receivefTargetCenter" name="fTargetCenter" class="clean_c form-control" readonly="readonly"></td>
													</tr>
													<tr>
														<td class="title" colspan="6">
															<div style="float: left;">
																<span class="sub num">可接收数：</span>
																<input type="text" id="receivekQty" name="kQty" class="clean_c form-control bottomInput" readonly="readonly">
															</div>
															<div style="float: left;margin-left: 100px;">
																<span class="sub num"><span class="requiredCss">*</span>接收前实际数量：</span>	
																<input type="text" id="receivefActualQty" name="fActualQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															</div>
															<div style="float: right;">
																<span class="sub num"><span class="requiredCss">*</span>接收数量：</span>
																<input type="text" id="receivelQty" name="lQty" class="clean_c form-control bj_color bottomInput" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
															</div>
														</td>
													</tr>
												</table>
												<div style="width: 100%;">
													<div>
														<span style="padding-left: 5px;" class="requiredCss">注：带*为必填字段。</span>
													</div>
													<div style="text-align: center;margin-top: 10px;">
														<button type="button" class="btn btn-default" id="confirm" style="margin-right: 20px;">确定</button>
														<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!-- 接收模态框 end -->
						
						<!-- 接收人态框 start -->
						<div class="modal fade " id="receiverModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
							<div class="modal-dialog" style="width: 560px;">
								<div class="modal-content" style="width: auto;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="myModal">接收人</h4>
									</div>
									<div class="modal-body" style="height: auto; padding: 10px;">
										<div style="text-align: center;">
											<div>
												<span style="font-size: 20px;">接收人卡号：</span>
												<input type="text" id="receivefWorker" name="fWorker" class="clean-c form-control bj_color resetting modalInput" autocomplete="off" />
											</div>
											<div style="margin-top: 10px;">
												<button type="button" id="confirm_receive" class="btn btn-default right">确定</button>
												<button type="button" id="back_receive" class="btn btn-default" data-dismiss="modal">返回</button>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- 接收人模态框 end -->
						
						<!-- 修改模态框 start -->
						<div class="modal fade " id="modifyModal" role="dialog"
							aria-labelledby="myModalLabel" aria-hidden="true"
							style="background-color: rgba(0, 0, 0, 0.5)"
							data-backdrop="static">
							<div class="modal-dialog" style="width: 80%; height: 220px;">
								<div class="modal-content" style="width: auto;height:350px;">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-hidden="true">&times;</button>
										<h4 class="modal-title" id="titleModal">修改</h4>
									</div>
									<div class="modal-body" id="modifyInformation" style="height:350px; padding: 10px;">
										<div class="col-sm-12 col-md-12 divTop">
											<div class="col-sm-4 col-md-4">
												<span class="spanTitle">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
												<input type="text" id="modifyfBillNo" name="fBillNo"
													class="form-control clean_c" autocomplete="off"
													readonly="readonly"  />
											</div>
											<div class="col-sm-4 col-md-4">
												<span class="spanTitle">物&nbsp;&nbsp;料&nbsp;&nbsp;代&nbsp;&nbsp;码&nbsp;：</span> <input type="text"
													id="modifyfNumber" name="fNumber" class="form-control clean_c"
													autocomplete="off"  /> <input type="hidden" id="fItemId"
													name="fItemId" class="form-control clean_c"
													autocomplete="off" readonly="readonly"/>																								
											</div>
											<div class="col-sm-4 col-md-4">
												<span class="spanTitle">物料名称：</span> <input type="text"
													id="modifyfName" name="fName" class="form-control clean_c"
													autocomplete="off" readonly="readonly"  />
											</div>
										</div>
										<div class="col-sm-12 col-md-12 divTop">
											<div class="col-sm-4 col-md-4">
												<span class="spanTitle">规格型号：</span> <input type="text"
													id="modifyfModel" name="fModel" class="form-control clean_c"
													autocomplete="off" readonly="readonly"  />
											</div>
											<div class="col-sm-5 col-md-5">
												<span class="spanTitle">计划生产数量：</span> <input type="text" style="width: 79%;"
													id="modifyfQty" name="fQty" class="form-control clean_c"
													autocomplete="off" />
											</div>											
										</div>		
										<div class="col-sm-12 col-md-12 divTop">
											<div class="col-sm-12 col-md-12">
												<span class="spanTitle">备注：</span>
												<textarea id="modifyfNote" style="width:80%" name="fNote"
													class="form-control clean_c textareaContent" rows="2"
													autofocus="off"></textarea>
											</div>
										</div>
										<div class="col-sm-12 col-md-12 divTop">
											<div class="col-sm-12 col-md-12">
												<span class="spanTitle">摘要：</span>
												<textarea style="width:80%" id="modifyfExplanation" name="fExplanation"
													class="form-control clean_c textareaContent" rows="1"
													autofocus="off"></textarea>
											</div>
										</div>
										<div class="col-sm-12 col-md-10 divTop"
											style="text-align: center;margin-left: 91px">
											<div class="col-sm-12 col-md-12">
												<button id="save" class="btn btn-default" type="button"
													style="margin-right: 25px;">保存</button>
												<button id="cancleModify" class="btn btn-default" type="button">取消</button>
											</div>
										</div>
										<div style="display:none;">
										<input type="text" style="width: 47%"
													id="fIcmoIdModify" name="fIcmoId" class="form-control clean_c"
													autocomplete="off"readonly="readonly" />
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- 修改模态框 end -->	
						
						<!-- 调用showModal里的queryModal，查询行 -->
						<div th:include="Production/showModal :: queryModal" />
						<div th:include="Production/customColumnModal :: customColumnModal" /></div>    
					</div>
				</div>
			</div>
		</div>
	</div>
	<span id="value" style="display: none;">2</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: bootstrapTable-eidt" />
	<!-- <script th:src="@{plugins/bootstrapEditable/js/bootstrap-table-editable.js}"></script> -->
	<div th:include="base :: others" />
	<div th:include="base :: ztree" />
	<!-- 生产任务公共js -->	
	<script th:src="@{js/Production/productionPublic.js}"></script>
	<script th:src="@{js/Production/productionTaskOperation.js}"></script>
	<script th:src="@{js/Production/showModal.js}"></script>	
	<script th:src="@{js/TaiZhang/productionCommon.js}"></script>
</body>
</html>